<?php

namespace component\element\organpost\controller;

use app\bll\OrganPost as BllOrganPost;
use core\component\ElementBase;
use core\traits\ElementView as TraitsElementView;
use support\View;

class Index extends ElementBase
{
    public function index(...$param)
    {
        $bllOrganPost = new BllOrganPost();
        $posts = $bllOrganPost->select();
        View::assign('posts', $posts);
        return $this->view($param);
    }
}
